//
//  ActivitySignViewCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/7/8.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ActivitySignViewCell.h"
#import <UIImageView+WebCache.h>

@interface ActivitySignViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *coutLab;
@property (weak, nonatomic) IBOutlet UIImageView *showImageView;
@property (weak, nonatomic) IBOutlet UILabel *typeLab;

@end

@implementation ActivitySignViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(OldActivityModel *)model
{
    _model = model;
    self.titleLab.text = model.title;
    self.coutLab.text = [NSString stringWithFormat:@"浏览次数：%zd",model.viewCount];
    [self.showImageView sd_setImageWithURL:[NSURL URLWithString:[model.avatarUrl componentsSeparatedByString:@"#"].firstObject] placeholderImage:GetImage(@"default_goods_image")];
    
    if (model.status == 0) {
        self.typeLab.text = @"审核中";
    }else if (model.status == 1) {
        self.typeLab.text = @"审核通过";
    }else if (model.status == 2) {
        self.typeLab.text = @"审核拒绝";
    }
}


@end
